package com.test.crawler;

import com.kangma.common.annotation.EnableApiIdempotent;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import java.util.TimeZone;

@Configuration
@EnableDiscoveryClient
@SpringBootApplication
@EnableApiIdempotent
@EnableFeignClients
public class CrawlerCenterApp {

    public static void main(String[] args) {
//		固定端口启动
		SpringApplication.run(CrawlerCenterApp.class, args);
    }
    @PostConstruct
    void setDefaultTimeZone(){
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
    }

}
